package com.spider.silence.downloader;

import com.alibaba.fastjson.JSONObject;
import org.apache.log4j.Logger;

import java.io.File;
import java.util.Map;

/**
 * Created by Linbo Hu on 2017/7/19.
 * 腾讯新闻下载器
 */
public class TencentXinWenDownloader {

    private Logger logger = Logger.getLogger(WangYiXinWenDownloader.class);

    private Map<String,File> files = null;

    public Map<String, File> getFiles() {
        return files;
    }

    private final String[] section = {
            "http://temp.163.com/special/00804KVA/cm_guonei.js?callback=data_callback", //国内
            "http://temp.163.com/special/00804KVA/cm_guoji.js?callback=data_callback", //国际
            "http://temp.163.com/special/00804KVA/cm_shehui.js?callback=data_callback", //社会
            "http://temp.163.com/special/00804KVA/cm_war.js?callback=data_callback",//军事
            "http://temp.163.com/special/00804KVA/cm_hangkong.js?callback=data_callback&a=2"//航空
    };

    public void generateTask(){

    }

    public JSONObject crawlItem(String url) throws Exception {
        return null;
    }

}
